include ../makefile.inc

INC=-I../lib/include
LIB=-L../lib/lib -layoo
INC:=${INC} ${INC_MYSQL}
LIB:=${LIB} ${LIB_MYSQL}

SRCS=$(wildcard ./*.cpp )
TARGETS=$(patsubst %.cpp, ./%.bin, $(SRCS))

./%.bin:./%.cpp
	g++ -o $@ $< -g ${INC} ${LIB}

all:$(TARGETS)

clean:
	find ./ -name "*.bin" -exec rm -rfv {} \;

